import os

SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:@localhost:3306/qa_test"
SQLALCHEMY_TRACK_MODIFICATIONS = True

MONGO_URI = 'mongodb://localhost:27017/log'

CELERY_BROKER_URL = 'redis://localhost:6379/0'
# CELERY_RESULT_BACKEND = 'redis://localhost:6379/1'
LIMITER_UIR = 'redis://localhost:6379/2'
if os.name == 'nt':

    task_serializer = 'pickle'
    accept_content = ['pickle', 'json']
    result_serializer = 'pickle'
else:
    task_serializer = 'json'
    accept_content = ['application/json', ]
    result_serializer = 'json'
task_time_limit = 5
result_expires = 60 * 60
worker_concurrency = 20
worker_max_tasks_per_child = 2000
imports = 'app.libs.tasks'
SECRET_KEY = "a/ds/j/k/h/s/j/g/9"
